<template>
  <div id="selectById">
    <el-form :inline="true" class="demo-form-inline center" >
      <el-row :gutter="18">
        <el-col :span="3"><el-button icon="el-icon-refresh" type="success" plain onclick="history.go(-1)">返回</el-button></el-col>
      </el-row>
    </el-form>
    <el-form :inline="true" :model="form"  class="demo-from-inline" >
      <router-link>返回<i class="el-icon-thumb"></i></router-link>
      <el-form-item label="公司名称">
        <el-input type="text" :value="form.supplierName" readonly></el-input>
      </el-form-item>
      <br>
      <el-form-item label="账户余额">
        <el-input type="text" :value="form.balance" readonly></el-input>
      </el-form-item>
      <br>
      <el-form-item label="联系电话">
        <el-input type="text" :value="form.supplierNumber" readonly></el-input>
      </el-form-item>
      <br>
      <el-form-item label="审核意见">
        <el-input type="text" :value="form.auitOpinion" readonly></el-input>
      </el-form-item>
      <br>
      <el-form-item label="地址" width="200px">
        <el-input type="text" :value="form.address"  width="200px"></el-input>
      </el-form-item>
      <br>
      <el-form-item label="审核时间">
        <el-input type="text" :value="form.checkTime" readonly></el-input>
      </el-form-item>
      <br>
      <el-form-item label="审核人">
        <el-input type="text" :value="form.checker" readonly></el-input>
      </el-form-item>

      <br>
      <el-form-item label="营业执照">
        <img :src="form.supplierIamge" width="10%">
      </el-form-item>
      <br>
      <el-form-item label="审核状态">
        <el-input type="text" :value="form.userSupplierTag=='0'?'等待审核':(form.userSupplierTag=='3'?'审核未通过':'审核通过')" readonly></el-input>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default  {
  created() {
    this.get()
  },
  methods:{
    async get(){
      const {data : res}  = await this.$http.post(`/supplier/selById?id=`+this.$route.query.index)
      console.log(res)
      this.form = res
    }
  },
  data() {
    return {
      form:{

      }
    }
  }
}
</script>

<style scoped>

</style>